package com.study.concurrent.A_ThreadManagement.e_ThreadSleepAndRecovery;

import java.util.concurrent.TimeUnit;

/**
 * Created by 赵超 on 2017/3/18.
 */
public class FileMain {
    public static void main(String[] args) {
        FileClock clock = new FileClock();
        Thread thread = new Thread(clock);
        thread.start();
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        thread.interrupt();
    }
}
